package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServiceResponse;
import com.mmall.pojo.Shipping;

public interface IShippingService {
    ServiceResponse addAddress(Integer userId, Shipping shipping);

    ServiceResponse<String> deleteAddress(Integer userId, Integer shippingId);

    ServiceResponse updateAddress(Integer userId, Shipping shipping);

    ServiceResponse<Shipping> selectAddress(Integer userId, Integer shippingId);

    ServiceResponse<PageInfo> list(Integer userId, int pageNumber, int pageSize);
}
